import React from 'react';
import {Link} from "react-router-dom";

const Config = (Action) => {
    const Handlers = {}
    const columns = [

        {title: "配置类别", dataIndex: "groupCode", width: 80},
        {title: "配置编码", dataIndex: "code", width:120},
        {title: "配置名称", dataIndex: "name", width:120},
        {title: "配置值", dataIndex: "value", width: 160},
        {title: "配置说明", dataIndex: "desc", width: 220},


        {
            title: '操作', dataIndex: 'id', width: 120, render(id, vo) {
                return <div>
                    <Link to={`detail/view?id=${id}`} className="mr-8">查看详情</Link>
                    <Link to={`detail/edit?id=${id}`}>编辑</Link>
                </div>
            }
        },
    ];
    return {
        ...window.CONFIG.getPagerConfig(Action), columns
    };
};


export default Config;
